
#ifndef __zqwl_rcan_driver_h
#define __zqwl_rcan_driver_h


#include "device.h"
#include "board.h"
#include "user.h"
#include "can_driver.h"
#include "pfc_control.h"
#include "Modbus_RTU_slave.h"

#if USE_ZQWL
typedef struct
{
    uint8_t dataNum;
    uint8_t dataVol;
    uint8_t txFlag;
    uint8_t data[8];
}ZQWL_RCAN_MODBUS_T;

typedef enum
{
    COMPLETE=0,
    SEGMENT,
}ZQWL_FLAG_E;


typedef enum
{
    FIRST=0,
    MID,
    LAST,
}ZQWL_TYPE_E;

void ZQWL_RCAN_POLLING(void);
void ZQWL_txDataControl(const uint8_t* data,uint8_t dataVolume);
void ZQWL_rxDataControl(void);
void sendDataToCan(void);

#endif

#endif
